package com.cooper.dao.trade;

import net.paoding.rose.jade.annotation.DAO;
import net.paoding.rose.jade.annotation.Insert;
import net.paoding.rose.jade.annotation.ReturnGeneratedKeys;
import net.paoding.rose.jade.annotation.SQL;

import com.cooper.entity.OrderAddress;

@DAO
public interface OrderAddressDAO {

	@ReturnGeneratedKeys
	@Insert(tableName="td_order_address")
	Long addAddress(OrderAddress address) throws Exception;
	
	@SQL("select * from td_order_address where deleted='n' and order_num=:1 ")
	OrderAddress getAddress(String orderNum) throws Exception;
	
}
